package com.demo.tomcat;

import com.demo.rule.servlet.MyServlet;

import java.io.IOException;

public class MySecondServlet extends MyServlet {
    @Override
    protected void doGet(MyRequest request, MyResponse response) throws IOException {
        doPost(request, response);
    }

    @Override
    protected void doPost(MyRequest request, MyResponse response) throws IOException {
        response.write("this is second servlet");
    }
}
